import request from '@/utils/request'

// 查询招标文件下载列表
export function listLoadFiles(query) {
  return request({
    url: '/purs/loadFiles/list',
    method: 'get',
    params: query
  })
}

// 查询招标文件下载详细
export function getLoadFiles(loadId) {
  return request({
    url: '/purs/loadFiles/' + loadId,
    method: 'get'
  })
}

// 新增招标文件下载
export function addLoadFiles(data) {
  return request({
    url: '/purs/loadFiles',
    method: 'post',
    data: data
  })
}

// 修改招标文件下载
export function updateLoadFiles(data) {
  return request({
    url: '/purs/loadFiles',
    method: 'put',
    data: data
  })
}

// 删除招标文件下载
export function delLoadFiles(loadId) {
  return request({
    url: '/purs/loadFiles/' + loadId,
    method: 'delete'
  })
}
